// 初始数据源
const initState = {
  n: 200
}

const reducer = (state = initState, action) => {
  if (action.type === 'num_add') {
    // console.log('num add')
    return { ...state, n: state.n + action.data }
  }
  return state
}

export default reducer
